package com.example.selflearning.entity;
import lombok.Data;

import java.io.Serializable;
/**
 * Created by yangjingzhi on 2019/5/16.
 */
/**/
@Data
public class UserEntity implements Serializable{

    private UserSexEnum userSex;
    private String userName;
    private String passWord;
    private String id;

    public UserEntity(String userName, String passWord, UserSexEnum userSex) {
        this.userName = userName;
        this.passWord = passWord;
        this.userSex = userSex;
    }


    public UserEntity(String id ,String userName){
        this.id= id;
        this.userName= userName;
    }
    public UserEntity(){}
    public boolean isNull() {
        return false;
    }

    public static class NullUser extends UserEntity {

        public NullUser() {
            super(null, null);
        }

        public boolean isNull() {
            return true;
        }
    }
}
